import { PullToRefresh, PullToRefreshProps } from '@nutui/nutui-react-taro';
import { View, Image } from '@tarojs/components';
import styles from './style.scss';

const pullingText = (
  <View className={styles.pullingText}>
    {/* <Image src={logo} className={styles.logo} /> */}
    <View className={styles.text}>松开刷新</View>
  </View>
);
export default (props: Partial<PullToRefreshProps>) => {
  const { children } = props;
  return (
    <PullToRefresh
      pullingText={pullingText}
      canReleaseText={pullingText}
      {...props}
    >
      {children}
    </PullToRefresh>
  );
};
